﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/ViewMasterPage1.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="registerHead" ContentPlaceHolderID="head" runat="server">
    <title>Tài khoản</title>
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Tạo tài khoản mới</h2>
    <p>
        Sử dụng form dưới để tạo tài khoản.
    </p>
    <p>
        Mật khẩu tối thiểu là <%=Html.Encode(ViewData["PasswordLength"])%> ký tự.
    </p>
    <%= Html.ValidationSummary() %>

    <% using (Html.BeginForm()) { %>
    <h2>Thông tin tài khoản</h2>
        <table>
    <tbody>
        <tr> 
                <td>
                    <label for="username">Tên đăng nhập</label>
                </td>
                <td>
                    <%= Html.TextBox("username")%>
                    <%= Html.ValidationMessage("username") %>
                </td>
                </tr>
                <tr>
                <td>
                    <label for="email">Email:</label>
                </td>
                <td>
                    <%= Html.TextBox("email") %>
                    <%= Html.ValidationMessage("email") %>
                </td>
                </tr>
                <tr>
                <td>
                    <label for="Ten">Tên:</label>
                </td>
                <td>
                    <%= Html.TextBox("Ten")%>
                    <%= Html.ValidationMessage("Ten") %>
                </td>
                </tr>
                <tr>
                <td>
                    <label for="DienThoai">Điện Thoại:</label>
                </td>
                <td>
                    <%= Html.TextBox("DienThoai") %>
                    <%= Html.ValidationMessage("DienThoai") %>
                </td>
                </tr>
                <tr>
                <td>
                    <label for="password">Password:</label>
                </td>
                <td>
                    <%= Html.Password("password")%>
                    <%= Html.ValidationMessage("password") %>
                </td>
                </tr>
                <tr>
                <td>
                    <label for="confirmPassword">Confirm password:</label>
                </td>
                <td>
                    <%= Html.Password("confirmPassword")%>
                    <%= Html.ValidationMessage("confirmPassword") %>
                </td>
                </tr>
            </tbody>
            </table>
                    <input type="submit" value="Đăng kí" />
    <% } %>
</asp:Content>
